#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "sci_server_lib.h"

//Test variables
int a = 5;
int b = 42;
int c = 1337;

//Defining what variables should be avalible
struct Variable varList[NR_VAR] = {
	{"a", &a},
	{"b", &b},
	{"c", &c}
};

char inCmd[50] = "vars\nset a \nget b\nvars\n";
int main(void) {	
	rxPtr = inBuffer;
	readPtr = inBuffer;
	//writeToBuffer(inCmd);
	
	while (1) {
		puts("Enter command:");
		gets(inCmd);
		strcat(inCmd,"\n");
		writeToBuffer(inCmd);
		while (cmdCounter > 0) {
			readNextCommand();
			cmdCounter--;
		}
	}
}

